
#include <BFog>
#include "member_BFog.h"

using namespace BWE;

#define member					(*(member_BFog*)_ptr)
#define member_allocate()		_ptr = new member_BFog(this)
#define member_release()		delete (member_BFog*)_ptr

BFog::BFog()
{
	member_allocate();
}
BFog::~BFog()
{
	member_release();
}

void BFog::setMode(BFog::Mode mode)
{
	member.mode = mode;
}
BFog::Mode BFog::mode() const
{
	return member.mode;
}

void BFog::setColor(const BColor& color)
{
	member.color = color;
}
const BColor& BFog::color() const
{
	return member.color;
}

void BFog::setDensity(float density)
{
	member.density = density;
}
float BFog::desity() const
{
	return member.density;
}

void BFog::setHint(BFog::Hint hint)
{
	member.hint = hint;
}
BFog::Hint BFog::hint() const
{
	return member.hint;
}

void BFog::setRange(const BRangef& range)
{
	member.range = range;
}
const BRangef& BFog::range() const
{
	return member.range;
}

